import { Body, Controller, Get, Post, Res, Req, Put, Delete } from '@nestjs/common'
import { MaxService } from '../Service/max.service'
@Controller('max')
export class MaxController {
    constructor(private readonly MaxService: MaxService) { }
    @Get()
    getType() {
        return this.MaxService.gettypelist()
    }
    @Post("/add")
    add(@Req() req: Request, @Res() res: Response,) {
        return this.MaxService.add(req, res)
    }
    @Post("/gets")
    gets(@Req() req: Request, @Res() res: Response,) {
        return this.MaxService.gets(req, res)
    }
    @Put("/editmax")
    editmax(@Req() req: Request, @Res() res: Response,) {
        return this.MaxService.editmax(req, res)
    }
    @Delete("/del")
    del(@Req() req: Request, @Res() res: Response,) {
        return this.MaxService.del(req, res)
    }
}